package xyz.thoughtset.viewer.common.exc.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import xyz.thoughtset.viewer.common.exc.entity.ExcInfo;
import xyz.thoughtset.viewer.common.exc.exceptions.ExecException;

@Getter
public class ExcMsgEvent extends ApplicationEvent {
    private ExcInfo excInfo;

    public ExcMsgEvent(Object source, ExecException exception) {
        super(source);
        this.excInfo = exception.getExcInfo();
    }

}
